package com.bookmall.entity;

import java.time.LocalDateTime;

//1.私有属性varchar->String tinyint-> createTime -> LocalDateTime deleteFlag -> boolean
//2.无参构造，全参构造，get,set,toString
public class User {
	private int userId;
	private String userName;
	private String password;
	private String nickName;
	private String address;
	private String phone;
	private LocalDateTime createTime;
	private int salt;
	private LocalDateTime modifyTime;
	private boolean deleteFlag;
	public User() {
		super();
	}
	public User(int userId, String userName, String password, String nickName, String address, String phone,
			LocalDateTime createTime, int salt, LocalDateTime modifyTime, boolean deleteFlag) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.password = password;
		this.nickName = nickName;
		this.address = address;
		this.phone = phone;
		this.createTime = createTime;
		this.salt = salt;
		this.modifyTime = modifyTime;
		this.deleteFlag = deleteFlag;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	public int getSalt() {
		return salt;
	}
	public void setSalt(int salt) {
		this.salt = salt;
	}
	public LocalDateTime getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}
	public boolean isDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	@Override
	public String toString() {
		return "User [userId=" + userId + ", userName=" + userName + ", password=" + password + ", nickName=" + nickName
				+ ", address=" + address + ", phone=" + phone + ", createTime=" + createTime + ", salt=" + salt
				+ ", modifyTime=" + modifyTime + ", deleteFlag=" + deleteFlag + "]";
	}
	
	
}
